<?php

  $Price = number_format ($row [ 'propertyprice' ], 2, ",", "."); 

?>
<table width="100%" align="center" class="lrp_bg"> 
    <tr valign="middle"> 
  <td colspan="2" valign="middle" align="left"> 
  <p>&nbsp;<font  size="-1"><b><?php echo $row [ "propertyaddress" ]; ?>
  - <?php echo $row [ "propertylocation" ]; ?></b></font></p></td> 
    <td valign="middle" align="right"><p class="propertystatus"><?php
  echo strtoupper ( $cgi->htmlEncode ( $row [ "propertystatus" ] ) );
          ?>&nbsp;</p></td>
</tr> 
    <tr> 
      <td colspan="3" bgcolor="#FFFFFF"> 
       <table width="100%" cellpadding="3" cellspacing="1"> 
        <tr> 
          <td><p align="center">
<?php

  if ( ! $row [ "propertyphoto1" ] )
  {
    ?><img src="<?php echo $ImageURL; ?>nopropertyimage.jpg" height="<?php
    echo $max_thumb_image_height; ?>" width="<?php echo $max_thumb_image_width; ?>"
      border="0" /><?php
  }
  else
  {
    ?><a href="?op=mi&id=<?php echo $row [ "id" ]; ?>&pl=<?php echo $row [ "propertylocation" ]; ?>"><img src="<?php
    echo $ImageURL; ?><?php echo $row [ "propertyphoto1" ]; ?>" height="<?php
    echo $max_thumb_image_height; ?>" width="<?php echo $max_thumb_image_width; ?>"
      border="0" alt="<?php
      echo $row [ "propertyaddress" ]; ?>, <?php
      echo $row [ "propertylocation" ]; ?>" title="<?php
      echo $row [ "propertyaddress" ]; ?>, <?php
      echo $row [ "propertylocation" ]; ?>" /></a><?php
  }

  ?></p></td>
          <td valign="top" align="left" width="100%">
   <table width="100%" cellpadding="1" cellspacing="1">
    <tr>
      <td>
    <p><?php echo LR_PROPERTY_TYPE; ?>&nbsp;<b><?php echo $row [ "propertytype" ]; ?></b></p></td>
      <td>
    <p><?php echo LR_PROPERTY_PRICE; ?>&nbsp;<b><?php echo CURRENCY, $Price; ?></b></p></td>
   </tr>
    <tr>
      <td>
    <p><?php echo LR_PROPERTY_REF; ?>&nbsp;<b><?php echo $row [ "propertyref" ]; ?></b></p></td>
      <td>
      <p>
    <?php if ($row [ "propertybedrooms" ] == "0") { echo "";} else { ?> 	
	<?php echo LR_NUMBER_OF_BEDROOMS; ?>&nbsp;<b><?php echo $row [ "propertybedrooms" ]; ?></b>
    <?php } ?></p></td>
   </tr>
   </table>
           <p>
         <?php echo $row [ "shortdescription" ]; ?></p>
         <p align="right"><a href="?op=mi&id=<?php echo $row [ "id" ];
         ?>&pl=<?php echo $row [ "propertylocation" ]; ?>"><img src="<?php print "$LanguageFolder/$language_pack"; ?>/buttons/button-moreinformation.gif" title="Veja mais detalhes" border="0" /></a></p></td> 
       </tr> 
    </table></td> 
</tr> 
</table>
<br />
<br />
